from requests import Response
from requests_html import HTMLSession

html_session = HTMLSession()


def req(url):
    __response = html_session.get(url)
    __response.encoding = "utf8"
    return __response


r: Response = req("http://identicon.net/")

r.html.find("#name", first=True).value = "abc"

print(r.html.html)

r.html.render()

print(r.html)

img = r.html.find("#show_identicon", first=True)

print(img)
